package com.chang.xmltx.controller;

import com.chang.xmltx.service.BookService;
import com.chang.xmltx.service.CheckoutService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class BookController {
    @Autowired
    private CheckoutService checkoutService;
    
    public void buyBook(Integer[] bookId, Integer userId) {
        checkoutService.buycheckout(bookId, userId);
    }
}
